#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->radioButton_male->setChecked(true);
    ui->label->setText("Your gender is male");
//    ui->radioButton_other->setEnabled(false);
    ui->radioButton_other->setDisabled(true);

}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_radioButton_male_clicked()
{
    ui->label->setText("Your gender is male");
}

void Widget::on_radioButton_female_clicked()
{
    ui->label->setText("Your gender is female");
}
void Widget::on_radioButton_other_clicked()
{
    ui->label->setText("Your gender is other");
}

